package com.jxl.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 心事树洞表
 * </p>
 *
 * @author 金小梁
 * @since 2025-02-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("treehole_posts")
@ApiModel(value="TreeholePosts对象", description="心事树洞表")
public class TreeholePosts implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "帖子唯一标识")
    @TableId(value = "post_id", type = IdType.AUTO)
    private Integer postId;

    @ApiModelProperty(value = "用户ID（外键关联用户表，匿名可选填）")
    private Integer userId;

    @ApiModelProperty(value = "帖子内容")
    private String content;

    @ApiModelProperty(value = "媒体文件链接（图片或视频）")
    private String mediaUrl;

    @ApiModelProperty(value = "帖子创建时间")
    private LocalDateTime createdAt;

    @ApiModelProperty(value = "是否匿名（0=否，1=是）")
    private Boolean isAnonymous;


}
